﻿using Basic.FlowGatewayModule.Interface;
using Basic.FlowRemoteModel.FlowAppPower;
using Basic.FlowRemoteModel.FlowAppPower.Model;

namespace Basic.FlowGatewayModule.lmpl
{
    internal class FlowAppPowerService : IFlowAppPowerService
    {
        public void Delete(long appId)
        {
            new DeleteAppPower
            {
                Id = appId,
            }.Send();
        }

        public AppPowerDto Get(long appId)
        {
            return new GetAppPower
            {
                Id = appId
            }.Send();
        }

        public void Set(AppPowerSet data)
        {
            new SetAppPower
            {
                Power = data
            }.Send();
        }
    }
}
